/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fbv.tcc.teste;

import fbv.tcc.classes.PontoRadiacao;
import fbv.tcc.xls.XlsReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import jxl.read.biff.BiffException;

/**
 *
 * @author Casa
 */
public class programaTeste {

    public static void main(String args[]) {

        
        PontoRadiacao p = new PontoRadiacao(2008,01, 2001, 20.5);
        //System.out.print(p.getDate());
        ArrayList<PontoRadiacao> ptn = new ArrayList<PontoRadiacao>();
        HashSet<PontoRadiacao> hashptn = new HashSet<PontoRadiacao>();
        
        XlsReader xls = new XlsReader();
        try {
            ptn = xls.loadSheetFile("G:\\Victor\\Dropbox\\FBV\\TCC\\Pasta sem titulo\\Radiationxx.xls");
            hashptn.addAll(ptn);
        } catch (BiffException ex) {
            Logger.getLogger(programaTeste.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(programaTeste.class.getName()).log(Level.SEVERE, null, ex);
        }
        //System.out.println(ptn.size());
       
       
        
        for (PontoRadiacao pontoRadiacao : hashptn) {

          if(pontoRadiacao.getHora()>500 && pontoRadiacao.getHora()<1800){
            System.out.println(pontoRadiacao);
          }

        }
        
        


    }

}
